package com.yl.login.di

import com.yl.common.network.RetrofitManager
import com.yl.login.api.LoginApi
import com.yl.login.repo.LoginRepo
import com.yl.login.viewmodel.LoginViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by stew on 8/5/22.
 */
val loginModule = module {
    single { RetrofitManager.getService(LoginApi::class.java) }
    single { LoginRepo(get()) }
    viewModel { LoginViewModel(get()) }
}